﻿
/*------------定义变量------------*/
/*主要颜色变量*/
@main-color: #009fb3;
@minor-color-1: #FF99CC;
@minor-color-2: #CC99CC;
@minor-color-3: #F0F0F0;

@link-color: #fff;


/*------------登录页-----------------------------*/
/*------------元素定义------------*/
#wrapBG {
    width: 100%;
    background: url(../images/logonbg.jpg) no-repeat fixed;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
/*------------顶部定义------------*/

#sign-header {
    margin: 0 0 10px 0;
    height: 120px;
    border-bottom: 10px solid @main-color;

    article {
        height: 100%;

        > section {
            height: 100%;
        }

        > section:nth-last-child(1) {
            line-height: 210px;
            color: #878787;

            a {
                color: #878787;

                &:hover {
                    color: @main-color;
                }
            }
        }
    }
}

/*------------主体样式------------*/
#sign-main {
    min-height: 450px;
    padding-top: 50px;

    .alphaBG {
        position: absolute;
        top: -20px;
        width: 100%;
        height: 107.5%;
        background-color: #fff;
        opacity: 0.8;
        filter: alpha(opacity=80);
    }

    article {
        > section:nth-child(1), > section:nth-child(2) {
            fieldset {
                position: relative;
                height: 350px;

                legend {
                    position: relative;
                    z-index: 100;
                    margin-left: 20px;
                    font-size: 200%;
                }

                > div:nth-child(2) {
                    margin-top: 12%;
                }
            }
        }

        > section:nth-child(1) {
            width: 700px;
            margin-right: 40px;

            fieldset {
                border: 4px solid @main-color;
                z-index: 999;

                legend {
                    margin-left: 20px;
                    font-size: 200%;
                    color: @main-color;
                }

                .friendsSignIn-ico {
                    display: block;
                    background: @main-color;
                    width: 100%;
                    height: 100px;
                    position: absolute;
                    bottom: 0;
                    z-index: 100;

                    li {
                        float: left;
                        padding-top: 8px;
                        margin: 0 10px;

                        a {
                            display: block;
                            width: 80px;
                            height: 90px;
                        }

                        &:nth-child(1) {
                            font-size: 150%;
                            color: #Fff;
                            line-height: 92px;
                            margin-right: 10px;
                        }

                        &:nth-child(2) {

                            a {
                                background: url(../images/qq-ico.png) no-repeat top;

                                &:hover {
                                    background-position: bottom;
                                }
                            }
                        }

                        &:nth-child(3) {
                            a {
                                background: url(../images/twitter-ico.png) no-repeat top;

                                &:hover {
                                    background-position: bottom;
                                }
                            }
                        }

                        &:nth-child(4) {
                            a {
                                background: url(../images/facebook-ico.png) no-repeat top;

                                &:hover {
                                    background-position: bottom;
                                }
                            }
                        }

                        &:nth-child(5) {
                            a {
                                background: url(../images/google-ico.png) no-repeat top;

                                &:hover {
                                    background-position: bottom;
                                }
                            }
                        }
                    }
                }

                table {
                    margin: 0 auto;
                    width: 80%;
                    position: relative;
                    z-index: 100;
                    top: 100px;

                    td {
                        color: @main-color;
                        font-size: 20px;

                        label {
                            font-size: 70%;
                            color: #808080;
                        }

                        a {
                            display: block;
                            text-align: center;
                            text-indent: 1em;
                            font-size: 70%;
                            color: #808080;

                            &:hover {
                                color: #000;
                            }
                        }

                        input[type="text"] {
                            width: 200px;
                            height: 30px;
                            opacity: 0.5;
                            border: 1px solid @link-color;
                            -moz-transition: all 0.5s;
                            -o-transition: all 0.5s;
                            -webkit-transition: all 0.5s;
                            transition: all 0.5s;
                            color: @main-color;
                            font-size: 80%;
                            font-weight: bold;

                            &:focus {
                                opacity: 1;
                                border: 1px solid @main-color;
                                color: #028989;
                            }
                        }

                        button {
                            position: relative;
                            top: 0;
                            margin-left: 10px;
                            width: 80px;
                            height: 75px;
                            font-size: 300%;
                            background-color: @main-color;
                            color: @link-color;

                            &:hover {
                                background-color: @link-color;
                                color: @main-color;
                            }
                        }
                    }
                }
            }
        }

        > section:nth-child(2) {
            width: 420px;

            fieldset {
                border: 4px solid @minor-color-2;

                legend {
                    color: @minor-color-2;
                }

                h2 {
                    margin-top: 15%;
                    display: block;
                    text-align: center;
                    position: relative;
                    z-index: 100;
                    color: @minor-color-2;
                }

                a {
                    position: absolute;
                    bottom: 0;
                    z-index: 100;
                    height: 100px;
                    line-height: 100px;
                    display: block;
                    width: 98%;
                    background-color: @minor-color-2;
                    color: @link-color;
                    font-size: 30px;

                    &:hover {
                        background-color: @minor-color-1;
                    }
                }
            }
        }
    }
}

/*------------页脚样式------------*/
#sign-footer {
    #footer-aboutShop {
        padding-top: 30px;
        color: @minor-color-3;
        height: 170px;
        background: @main-color;

        li {
            float: left;
        }

        li:not(.contact) {
            float: left;
            width: 14%;
        }

        li:nth-last-child(1) {
            width: 30%;

            span {
                display: block;
                margin-bottom: 10px;

                i {
                    font-size: 200%;
                    vertical-align: middle;
                }

                &:not(i) {
                    font-size: 120%;
                }
            }
        }

        dt {
            font-size: 120%;
        }

        dd {
            font-size: 80%;

            a {
                display: block;
                margin-top: 10px;
                color: #f5f5f5;
                text-indent: 2em;

                &:hover {
                    color: #000;
                }
            }
        }
    }

    #footer-copyright {
        font-size: 90%;
        color: #adadad;
    }
}


/*-----------------首页样式-----------------------------*/
#index-header {
    height: 30px;
    background: @minor-color-3;

    #index-signBar {
        ul {
            li {
                float: left;
                width: 80px;

                a {
                    display: block;
                    height: 30px;
                    line-height: 30px;
                    text-align: center;
                    color: @link-color;
                }

                &:nth-child(1) {
                    a {
                        background-color: @main-color;

                        &:hover {
                            background-color: (@main-color + #222 );
                        }
                    }
                }

                &:nth-child(2) {
                    a {
                        background-color: @minor-color-2;

                        &:hover {
                            background-color: @minor-color-1;
                        }
                    }
                }
            }
        }

        > a {
            display: block;
            width: 100px;
            height: 100%;
            line-height: 30px;
            color: @main-color;

            &:hover {
                color: #000;
            }
        }
    }
}

.logo {
    a {
        color: #fff;
        font-size: 500%;
        text-shadow: #CC99CC 1px 1px, #CC99CC 2px 2px, #CC99CC 3px 3px, #CC99CC 4px 4px, #CC99CC 5px 5px, #CC99CC 6px 6px;
    }
}

#index-titleBar {
    height: 120px;
    background: url(../images/titleBG.png) no-repeat;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    > div {
        height: 120px;

        & > :nth-child(1) {
            a {
                color: #fff;
                font-size: 500%;
                text-shadow: #CC99CC 1px 1px, #CC99CC 2px 2px, #CC99CC 3px 3px, #CC99CC 4px 4px, #CC99CC 5px 5px, #CC99CC 6px 6px;
            }
        }

        & > :nth-child(2) {
            div {
                width: 100%;
                margin-top: 40px;
                float: left;
                height: 40px;
                opacity: 0.8;
                filter: alpha(opacity=80);

                &:focus {
                    opacity: 1;
                    filter: alpha(opacity=100);
                }

                input {
                    border-radius: 5px 0 0 5px;
                    width: 40%;
                    min-height: 40px;
                    border: none;
                    float: left;
                    font-size: 120%;
                    -moz-transition: all 0.2s;
                    -o-transition: all 0.2s;
                    -webkit-transition: all 0.2s;
                    transition: all 0.2s;
                    text-align: center;

                    &:focus {
                        box-shadow: 0 0 5px @main-color;
                        width: 80%;
                    }
                }

                a {
                    border-radius: 0 5px 5px 0;
                    float: left;
                    display: block;
                    background: @link-color;
                    color: @main-color;
                    width: 10%;
                    height: 40px;
                    font-size: 30px;
                    text-align: center;

                    &:hover {
                        background: @main-color;
                        color: @link-color;
                    }
                }
            }
        }

        & > :nth-child(3) {
            a {
                opacity: 0.8;
                filter: alpha(opacity=80);
                margin-top: 40px;
                display: block;
                height: 100%;
                line-height: 40px;
                text-align: center;
                background: #fff;
                border-radius: 5px;
                color: @link-color;
                box-shadow: 5px 5px 5px #000;
                background: @minor-color-2;

                &:hover {
                    opacity: 1;
                    filter: alpha(opacity=100);
                }
            }
        }
    }
}

/*-------------------导航条-----------------*/
#navBar {
    height: 40px;
    border-bottom: 1px solid @main-color;
    margin-bottom: 30px;

    > div {
        height: 100%;

        > ul {
            height: 100%;

            > li {
                height: 100%;
                position: relative;
                float: left;
                margin-right: 20px;

                &:not(.pro-cate-link) {
                    min-width: 120px;

                    > a {
                        display: block;
                        line-height: 40px;
                        text-align: center;
                        font-size: 120%;
                        background: @link-color;
                        color: @main-color;

                        &:hover {
                            color: @main-color;
                            margin-top: -8px;
                            margin-left: -8px;
                            margin-right: 8px;
                            box-shadow: @main-color 1px 1px, @main-color 2px 2px, @main-color 3px 3px, @main-color 4px 4px,@main-color 5px 5px,@main-color 6px 6px,@main-color 7px 7px,@main-color 8px 8px;
                        }
                    }
                }
            }

            .pro-cate-link {
                min-width: 80px;

                > a {
                    display: block;
                    line-height: 40px;
                    text-align: center;
                    font-size: 120%;
                    background: @link-color;
                    color: @minor-color-2;

                    &:hover {
                        color: @main-color;
                    }
                }

                &:hover {
                    > ul {
                        display: block;
                    }
                }

                > ul {
                    display: none;
                    position: absolute;
                    background: #fff;
                    border-left: 1px solid @main-color;
                    border-bottom: 1px solid @main-color;
                    border-right: 1px solid @main-color;
                    z-index: 999;
                    box-shadow: 0 5px 15px;

                    li {
                        float: left;
                        width: 100%;

                        &:nth-child(1) {

                            dl {
                                dt {
                                    color: @main-color;
                                    border-bottom-color: @main-color;
                                }

                                dd {
                                    a {
                                        &:hover {
                                            background: @main-color;
                                        }
                                    }
                                }
                            }
                        }

                        &:nth-child(2) {

                            dl {
                                dt {
                                    color: @minor-color-1;
                                    border-bottom-color: @minor-color-1;
                                }

                                dd {
                                    a {
                                        &:hover {
                                            background: @minor-color-1;
                                        }
                                    }
                                }
                            }
                        }

                        &:nth-child(3) {

                            dl {
                                dt {
                                    color: @minor-color-2;
                                    border-bottom-color: @minor-color-2;
                                }

                                dd {
                                    a {
                                        &:hover {
                                            background: @minor-color-2;
                                        }
                                    }
                                }
                            }
                        }

                        dl {
                            margin-top: 20px;
                            margin-right: 20px;
                            margin-left: 20px;
                            margin-bottom: 80px;

                            dt {
                                font-size: 150%;
                                border-bottom-width: 2px;
                                border-bottom-style: solid;

                                span {
                                    margin-left: 20px;
                                    font-size: 50%;
                                    color: #c2c2c2;
                                }
                            }

                            dd {
                                float: left;
                                margin-left: 10px;
                                margin-right: 10px;
                                margin-top: 10px;

                                a {
                                    display: block;
                                    font-size: 120%;
                                    min-width: 120px;
                                    height: 40px;
                                    text-align: center;
                                    line-height: 40px;

                                    &:hover {
                                        color: @link-color;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

/*-----------------商品列表--------------------------*/
#pro_main {
}

.pro_item {
    float: left;
    width: 250px;
    height: auto;
    margin: 20px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 10px #808080;
    color: #878787;
    font-size: 90%;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    overflow: hidden;

    &:hover {
        box-shadow: 0 1px 10px #000;
    }
}


.pro_title, .pro_img, .pro_norm, .pro_intr, ._pro_shop {
    float: left;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.pro_norm, .pro_intr {
    border-bottom: 1px dashed #c2c2c2;
}

.pro_title a {
    display: block;
    margin: 10px;
    font-size: 160%;
}

.pro_img a {
    display: block;
    width: 100%;
    height: auto;
}

.pro_img a img {
    width: 100%;
}

.pro_norm table {
    margin: 10px auto;
    width: 70%;
}

.pro_norm table td {
    vertical-align: bottom;
}

.pro_norm table td span {
    font-size: 30px;
    color: #009fb3;
    vertical-align: bottom;
}

.pro_intr p {
    width: 98%;
    margin-left: 2%;
    text-indent: 2em;
}

.pro_shop a {
    float: left;
    display: block;
    width: 100%;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    background: @main-color;
    color: #fff;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

.pro_shop a:hover {
    background: #03e3ff;
}

.pro_shop dl dd {
    float: left;
    width: 100%;
    height: auto;
    margin-top: 1px;
}

#pro-sort {
    width: 100%;
    height: 30px;
    border-bottom: 1px solid #c2c2c2;
    margin-bottom: 20px;

    ol {
        li {
            float: left;

            &:nth-child(2n+1) {
                color: #808080;
                margin-right: 5px;
            }

            &:nth-child(2n) {
                margin-right: 50px;
            }

            a {
                &:hover {
                    color: @main-color;
                }
            }
        }
    }
}


/*-------------------商品详情页-------------------------*/
.detail-img {
    margin-bottom: 20px;
    width: 310px;
    height: 310px;
    text-align: center;
    line-height: 310px;
    font-size: 200%;
    color: #FFF;

    img {
        width: 300px;
        height: 300px;
        border: 5px solid @main-color;
    }
}

.detail-norm {
    width: 618PX;
    height: 310px;
    background: @minor-color-3;

    dl {
        float: left;

        dt {
            float: left;
            width: 97%;
            font-size: 150%;
            margin-bottom: 20px;
            background-color: @main-color;
            color: @link-color;
            padding: 10px 0 10px 19px;
        }

        dd {
            float: left;
            height: 40px;
            line-height: 40px;

            &:nth-child(2n) {
                width: 20%;
                color: #878787;
                text-align: center;
            }

            &:nth-child(2n+1) {
                width: 80%;

                input {
                    margin-top: -5px;
                    width: 50px;
                    height: 20px;
                    text-align: center;
                }

                > a {
                    color: #ccc;

                    *:hover {
                        color: @main-color;
                    }
                }
            }
        }

        .detail-price {
            font-size: 150%;
            color: @main-color;
        }
    }

    > div {
        float: left;
        position: relative;
        left: 20%;
        top: 50px;

        a {
            padding: 5px;
            display: block;
            color: @link-color;
            float: left;

            &:hover {
                border-color: @main-color;
            }

            &:nth-child(1) {
                background-color: @main-color;
            }

            &:nth-child(2) {
                background-color: @minor-color-1;
            }

            &:nth-child(3) {
                background-color: @minor-color-2;
            }
        }
    }
}

.detail-description {
    margin-top: 20px;
    margin-bottom: 40px;

    h2 {
        padding-left: 10px;
        background: @main-color;
        padding-bottom: 5px;
        color: @link-color;
    }

    table {
        background: @minor-color-3;
        width: 100%;

        tr {
            td {
                padding: 5px 0;
                font-size: 90%;

                &:nth-child(2n+1) {
                    max-width: 9%;
                    color: #808080;
                    text-align: center;
                }

                &:nth-child(2n) {
                    width: 23%;
                }
            }
        }
    }
}

.detail-content {
    height: 30px;
    background: @main-color;

    .detail-btnGroup {
        padding-left: 10px;
        background: @main-color;
        bottom: 0;

        .active {
            color: @main-color;
            font-size: 120%;
            background: @link-color;
            line-height: 40px;
            border: 1px solid @main-color;
            box-shadow: @main-color 1px 1px, @main-color 2px 2px, @main-color 3px 3px, @main-color 4px 4px,@main-color 5px 5px,@main-color 6px 6px;
        }

        > a {
            color: @link-color;
            line-height: 30px;
            padding: 0 10px;
            -moz-transition: all 0.2s;
            -o-transition: all 0.2s;
            -webkit-transition: all 0.2s;
            transition: all 0.2s;

            &:hover {
                color: @minor-color-1;
            }

            &:nth-child(1) {
            }

            &:nth-child(2) {
                left: 128px;
            }
        }
    }

    .detail-content-subcontnet {
        width: 98%;
        margin-top: 30px;
        padding: 40px 20px 1% 1%;
        background: @minor-color-3;
    }
}

.detail-sideBar {
    width: 18.8%;
    margin-left: 1%;
    border: 1px solid @main-color;

    h2 {
        color: @link-color;
        background: @main-color;
        padding: 9.5px 0;
    }

    > div {
        width: 94%;
        margin: 3%;
        background: @minor-color-3;

        > a {
            float: left;
            display: block;
            width: 100%;
            margin-bottom: 10px;

            img {
                float: left;
                width: 200px;
                height: 200px;
                border: 3.5px solid transparent;
            }
        }

        span {
            b {
                color: @main-color;
            }
        }
    }
}
